import request from '@/api/request';

/**
 * 分页
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const smsTplPageApi = query => {
    return request({
        url: '/api/setup/sms/tpl/page',
        method: 'get',
        params: query,
        isLoading: true
    });
};

/**
 * 详情
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const smsTplDetailApi = query => {
    return request({
        url: '/api/setup/sms/tpl/getDetail',
        method: 'get',
        params: query,
        isLoading: true
    });
};

/**
 * 添加
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const smsTplSaveApi = query => {
    return request({
        url: '/api/setup/sms/tpl/save',
        method: 'post',
        data: query,
        isLoading: true
    });
};

/**
 * 编辑
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const smsTplEditApi = query => {
    return request({
        url: '/api/setup/sms/tpl/edit',
        method: 'put',
        data: query,
        isLoading: true
    });
};

/**
 * 编辑状态
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const smsTplEditStatusApi = query => {
    return request({
        url: '/api/setup/sms/tpl/editStatus',
        method: 'put',
        params: query,
        isLoading: true
    });
};

/**
 * 删除
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const smsTplRemoveApi = query => {
    return request({
        url: '/api/setup/sms/tpl/removeByIds',
        method: 'delete',
        params: query,
        isLoading: true
    });
};

